package cn.liulingfengyu.structuralpattern.flyweightpattern;

/**
 * 具体享元类
 */
public class ConcreteFlyweight implements Flyweight {
    private String intrinsicState;

    public ConcreteFlyweight(String intrinsicState) {
        this.intrinsicState = intrinsicState;
    }

    @Override
    public void operation(String extrinsicState) {
        System.out.println("具体享元对象：" + intrinsicState + "，外部状态：" + extrinsicState);
    }
}